From ab09a860ed810e1085a5ba8f4d5e75d3cf911adb Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Tue, 10 Feb 2004 17:49:14 +0000 Subject: [PATCH] Fixes #133995, patch by Morten Welinder . 2004-02-10 Federico Mena Quintero Fixes #133995, patch by Morten Welinder . * tests/prop-editor.c (create_prop_editor): Free the title. (object_changed): Free the children list. --- ChangeLog | 7 +++++++ ChangeLog.pre-2-10 | 7 +++++++ ChangeLog.pre-2-4 | 7 +++++++ ChangeLog.pre-2-6 | 7 +++++++ ChangeLog.pre-2-8 | 7 +++++++ tests/prop-editor.c | 2 ++ 6 files changed, 37 insertions(+) diff --git a/ChangeLog b/ChangeLog index d57db3acb9..abc1f0d12d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-02-10 Federico Mena Quintero + + Fixes #133995, patch by Morten Welinder . + + * tests/prop-editor.c (create_prop_editor): Free the title. + (object_changed): Free the children list. + Tue Feb 10 01:58:55 2004 Matthias Clasen * gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment): diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index d57db3acb9..abc1f0d12d 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +2004-02-10 Federico Mena Quintero + + Fixes #133995, patch by Morten Welinder . + + * tests/prop-editor.c (create_prop_editor): Free the title. + (object_changed): Free the children list. + Tue Feb 10 01:58:55 2004 Matthias Clasen * gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment): diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index d57db3acb9..abc1f0d12d 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,10 @@ +2004-02-10 Federico Mena Quintero + + Fixes #133995, patch by Morten Welinder . + + * tests/prop-editor.c (create_prop_editor): Free the title. + (object_changed): Free the children list. + Tue Feb 10 01:58:55 2004 Matthias Clasen * gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment): diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index d57db3acb9..abc1f0d12d 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +2004-02-10 Federico Mena Quintero + + Fixes #133995, patch by Morten Welinder . + + * tests/prop-editor.c (create_prop_editor): Free the title. + (object_changed): Free the children list. + Tue Feb 10 01:58:55 2004 Matthias Clasen * gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment): diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index d57db3acb9..abc1f0d12d 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +2004-02-10 Federico Mena Quintero + + Fixes #133995, patch by Morten Welinder . + + * tests/prop-editor.c (create_prop_editor): Free the title. + (object_changed): Free the children list. + Tue Feb 10 01:58:55 2004 Matthias Clasen * gtk/gtkcontainer.c (gtk_container_set_focus_hadjustment): diff --git a/tests/prop-editor.c b/tests/prop-editor.c index c9fe9d6d3b..33e470e6af 100644 --- a/tests/prop-editor.c +++ b/tests/prop-editor.c @@ -430,6 +430,7 @@ object_changed (GObject *object, GParamSpec *pspec, gpointer data) label = GTK_WIDGET (children->data); button = GTK_WIDGET (children->next->data); g_object_get (object, pspec->name, &obj, NULL); + g_list_free (children); if (obj) name = g_type_name (G_TYPE_FROM_INSTANCE (obj)); @@ -850,6 +851,7 @@ create_prop_editor (GObject *object, gtk_container_add (GTK_CONTAINER (win), properties); title = g_strdup_printf ("Properties of %s", g_type_name (type)); gtk_window_set_title (GTK_WINDOW (win), title); + g_free (title); } gtk_window_set_default_size (GTK_WINDOW (win), -1, 400); -- 2.30.2